package com.wang.ymcc.service.impl;

import com.wang.ymcc.domain.CourseChapter;
import com.wang.ymcc.mapper.CourseChapterMapper;
import com.wang.ymcc.service.ICourseChapterService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程章节 ， 一个课程，多个章节，一个章节，多个视频 服务实现类
 * </p>
 *
 * @author whale
 * @since 2022-10-25
 */
@Service
public class CourseChapterServiceImpl extends ServiceImpl<CourseChapterMapper, CourseChapter> implements ICourseChapterService {

    @Autowired
    private CourseChapterMapper courseChapterMapper;
    @Override
    public List<CourseChapter> selectByCourseId(Long id) {
        return courseChapterMapper.selectByCourseId(id);
    }
}
